import service from '@/utils/request'
export const getDepartmentList = () => {
  return service.get('/company/department')
}
export const getManager = () => {
  return service.get('/sys/user/simple')
}
export const queryDepartment = (form) => {
  return service.post('/company/department', form)
}
export const editDepartment = (id) => {
  return service.get(`/company/department/${id}`)
}

export const editDepartmentApi = (data) => {
  return service.put(`/company/department/${data.id}`, data)
}

export const deleteDepartment = (id) => {
  return service.delete(`/company/department/${id}`)
}
